home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_5 / issue_06 / benchmarks / c_source / gscrn2 < prev    next >
Encoding:
Text File  |  1991-04-30  |  526 b   |  27 lines

  1. /* grafscrn */
  2.  
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. #include <time2.h>
  6.  
  7. main()
  8. {
  9.     int i,j,x,y;
  10.    /* int gdriver=DETECT, gmode, errorcode;*/
  11.     clock_t start, end;
  12.  
  13.  
  14.     
  15.     x=10;
  16.     y=20;
  17.     start=clock(); /* begin timing */
  18.     printf("start\n");
  19.     /*cleardevice(); this could be disastrous in a WIMP box */
  20.     for (i=0; i<100; i++)
  21.         for (j=0; j<100; j++)
  22.         printf( ".");
  23.        end=clock();
  24.        printf("\n");
  25.        printf("The timing for this Screen Test was %f\n", (end-start) / CLK_TCK);
  26. };
  27.